def extra_datas(mydir):
    if mydir.endswith('/'):
        mydir = mydir[:-1]
    import os
    import glob
    def rec_glob(p, files):

        for d in glob.glob(p):
            if os.path.isfile(d):
                files.append(d)
            rec_glob("%s/*" % d, files)

    files = []
    rec_glob("%s/*" % mydir, files)
    extra_datas = []
    for f in files:
        d_path = '/'.join(mydir.split('/')[:-1])
        r_path = f[len(d_path)+1:]
        extra_datas.append((r_path, f, 'DATA'))

    return extra_datas


print extra_datas('dist')
